<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
{if $title neq ""}
<title>{$title} - SunRav WEB Class</title>
{else}
<title>SunRav WEB Class</title>
{/if}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="{$WEB_APP.css_dir}print.css" rel="stylesheet" type="text/css">
<link href="{$WEB_APP.cfg_url}favicon.ico"  rel="SHORTCUT ICON">
<meta name="description" content="SunRav WEB Class">
</head>
<body>
{if sizeof($WEB_APP.titles) neq 0}
		<table class="width100">
		{assign var="tmp" value="2"}
		{foreach from = $WEB_APP.titles item = item name=foreach_row}
			{if $tmp eq 2}
				{assign var="tmp" value="1"}
			{else}
				{assign var="tmp" value="2"}
			{/if}
			{if $item.name eq "header"}
				</table>
				<br>{assign var="tmp" value="2"}
				<table class="width100">
				<tr class="print">
					
					<td colspan = 2 class="print" align="center"><strong>{$item.value}</strong></td>
					
				</tr>
			{else}
			<tr>
				
				<td height="30" width = "30%" class="print"><strong>{$item.name|escape|email}:</strong></td>
				<td height="30" width = "70%" class="print">{$item.value}</td>
				
			</tr>
			{/if}
		{/foreach}
			
		</table>		
	{/if}
	{if $WEB_APP.rows_count > 0}
		<br>
		<table class="width100">
		<tr class="print">
			{foreach from = $WEB_APP.columns item = column}
				<td class="print" align="center"><strong>{$column->name}</strong></td>
			{/foreach}
		</tr>
		{foreach from = $WEB_APP.rows item = row name=foreach_row}
			<tr>
			{foreach from = $WEB_APP.columns item = item}
				{assign var="field" value=$item->title}
				{if !isset($WEB_APP.escape)}
					<td height="30" class="print" align="center">{$row[$field]|escape|email}</td>
				{else}
					<td height="30" class="print" align="center">{$row[$field]}</td>
				{/if}
			{/foreach}
			</tr>
		{/foreach}
		</table>
	{/if}
	
	{if $WEB_APP.themes_count > 0}
		<br>
		<table class="width100">
		<tr class="print">
			{foreach from = $WEB_APP.themes_columns item = column}
				<td class="print" align="center"><strong>{$column->name}</strong></td>
			{/foreach}
		</tr>
		{foreach from = $WEB_APP.themes item = row name=foreach_row}
			<tr>
			{foreach from = $WEB_APP.themes_columns item = item}
				{assign var="field" value=$item->title}
				{if !isset($WEB_APP.escape)}
					<td height="30" class="print" align="center">{$row[$field]|escape|email}</td>
				{else}
					<td height="30" class="print" align="center">{$row[$field]}</td>
				{/if}
			{/foreach}
			</tr>
		{/foreach}
		</table>
	{/if}
</body>
</html>
